package com.wangce.entity;

import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author lovefan 
 * @create 2021-12-03 10:26 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Send {

	/**
	 * table name:id
	 * table type:bigint(20)
	 * table comment:主键
	 */
	private Long id;

	/**
	 * table name:oid
	 * table type:bigint(20)
	 * table comment:出库单id
	 */
	private Long oid;

	/**
	 * table name:send_date
	 * table type:date
	 * table comment:发货日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date sendDate;

	/**
	 * table name:send_price
	 * table type:decimal(10,2)
	 * table comment:总金额
	 */
	private Double sendPrice;

	/**
	 * table name:prepared_id
	 * table type:int(11)
	 * table comment:制单人工号
	 */
	private Integer preparedId;

	/**
	 * table name:prepared_by
	 * table type:varchar(20)
	 * table comment:制单人
	 */
	private String preparedBy;

	/**
	 * table name:prepared_date
	 * table type:date
	 * table comment:制单时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date preparedDate;

	/**
	 * table name:send_site
	 * table type:varchar(50)
	 * table comment:发货地址
	 */
	private String sendSite;

	/**
	 * table name:send_image
	 * table type:varchar(50)
	 * table comment:发货附件
	 */
	private String sendImage;

	/**
	 * table name:content
	 * table type:varchar(50)
	 * table comment:备注
	 */
	private String content;
	/**
	 * 发货明细表
	 */
	private List<Senddetail> lists;
	//发货图片
	private String image;
	private Double agio;
}
